package org.suk.dp.facade;

/**
 * Description:外观类 <br/>
 * @version V1.0  2017/6/20 20:18  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class Facade {
    private SubSystem1 subSystem1;
    private SubSystem2 subSystem2;
    private SubSystem3 subSystem3;
    private SubSystem4 subSystem4;

    public Facade() {
        this.subSystem1 = new SubSystem1();
        this.subSystem2 = new SubSystem2();
        this.subSystem3 = new SubSystem3();
        this.subSystem4 = new SubSystem4();
    }

    void method1(){
        System.out.println("方法组1-----");
        this.subSystem1.method1();
        this.subSystem2.method2();
        this.subSystem3.method3();
    }

    void method2(){
        System.out.println("方法组2-----");
        this.subSystem4.method4();
    }
}
